'''
@Owner dYrolign and DERFDY 2025.
@Author dYrolign.
@Contibutor iKeinsan, Werstog, Leoitsenn.
@DateCreated 2025/9/28.
'''

# This class is still not in use.
class invalidIdException():
    def __init__(self, text, expected_length):
        self.text = text
        self.actual_length = len(text)
        self.expected_length = expected_length
        super().__init__(
            f"字符串长度错误: 期望长度 {expected_length}, 实际长度 {self.actual_length}"
        )

def outputBirthdayViaId(id):
    if len(id) != 18: return("WRONG!")
    date = f"{id[6:10]}年{id[10:12]}月{id[12:14]}日"
    return date

id = input("Input Your ID Number: ")
print(outputBirthdayViaId(id))